//
//  SEChatFileAuthorizeCell.swift
//  SmartEyeForDoctor
//
//  Created by QDSG on 2021/6/16.
//

import UIKit

class SEChatFileAuthorizeCell: UITableViewCell {

    func update(with viewModel: SEChatViewModel) {
        let status = SEPatientFileAuthorizedStatus(rawValue: viewModel.chatRecord.content ?? "1")
        statusLabel.text = status?.statusText
        statusLabel.textColor = status?.statusTextColor
    }
    
    @IBOutlet private weak var containerView: UIView! {
        didSet {
            containerView.layer.cornerRadius = 6
            containerView.layer.borderColor = UIColor(hex: "#EBEBEB").cgColor
            containerView.layer.borderWidth = 1
            containerView.layer.masksToBounds = true
        }
    }
    
    @IBOutlet private weak var statusLabel: UILabel!
    
}
